package world.snowcrystal.model.dto.picture;

import world.snowcrystal.common.PageRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;
import world.snowcrystal.model.dto.search.SearchSupport;

import java.io.Serializable;

/**
 * 查询请求
 * tianqing
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class PictureQueryRequest extends PageRequest implements Serializable, SearchSupport {

    /**
     * 搜索词
     */
    private String searchText;

    private static final long serialVersionUID = 1L;

    @Override
    public String getSearchField() {
        return searchText;
    }

    @Override
    public void setSearchField(String queryField) {
            this.searchText = queryField;
    }
}